import { ShellUtil } from "./ShellUtil";
import { Main } from "../Main";

/**
 * 语言同步工具
 */
export class SyncLanguageUtil {
    static exec(cb:()=>void) {
        ShellUtil.exec(`
rsync -avz --delete --exclude='*.svn*' ${Main.projPath}public/language/ ${Main.codePath}Resources/src/app/language/ || exit 1
        `, cb);
    }
}